const mongoose = require('mongoose');

const schema = new mongoose.Schema({
    users: [{type: mongoose.Schema.Types.ObjectId, ref: 'User'}],
    mList: [{
        poster: String,
        text: String,
        preText: String,
        textType:  String,
        time: String,
    }],
    listLength: {type: Number, default: 1}
})

module.exports = mongoose.model('privateMessage', schema);